package loader;

import java.util.List;

import rainbownlp.core.Artifact;
import rainbownlp.core.Artifact.Type;
import rainbownlp.core.Setting;
import rainbownlp.parser.ParseHandler;
import rainbownlp.parser.StanfordParser;

public class ParseManager {
	public static StanfordParser s_parser = new StanfordParser();
	public static void main(String[] args) throws Exception
	{
		List<Artifact> all_sent_train = Artifact.listByTypeAndForTrain(Type.Sentence,true);
		for (Artifact sent:all_sent_train)
		{
			ParseHandler.calculatePOS(s_parser, sent);
		}
//		List<Artifact> all_sent_test = Artifact.listByTypeAndForTrain(Type.Sentence,false);
//		for (Artifact sent:all_sent_test)
//		{
//			ParseHandler.calculatePOS(s_parser, sent);
//		}
		
	}
}
